package cn.qn.repository.news;

import cn.qn.moudle.news.ImageText;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Auther: Bryant
 * @Date: 2019/5/29
 * @Description:
 */
@Repository
public interface ImageTextRepository extends JpaRepository<ImageText,Integer> {

    ImageText findImageTextById(Integer id);

    ImageText findByTop(Boolean top);

    ImageText findFirstByOrderByCreateTimeDesc();
}
